package com.tianhui.consignortwofei.api;


import com.fgs.common.CommonResponse;
import com.fgs.common.entity.CommonDataListInfo;
import com.tianhui.consignortwofei.mvp.model.enty.VehicleInfo;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * api service
 */
public interface VehicleApiService {

    //获取车辆列表
    @GET("smc/drivercar/list")
    Observable<CommonResponse<CommonDataListInfo<VehicleInfo>>> vehicleList(@QueryMap Map<String, String> map);


    //车辆信息保存
    @POST("smc/drivercar")
    Observable<CommonResponse> vehicleInfoSave(@Body VehicleInfo info);

    //车辆保存并审核
    @POST("smc/drivercar/saveaudit")
    Observable<CommonResponse> vehicleInfoSaveAndAudit(@Body VehicleInfo info);

    //车辆信息审核
    @POST("smc/drivercar/updateaudit")
    Observable<CommonResponse> vehicleAudit(@QueryMap Map<String, String> map);

    //重新生成挂靠声明
    @POST("smc/drivercar/makeAnchor")
    Observable<CommonResponse> createStatement(@QueryMap Map<String, String> map);

    //获取车辆信息
    @GET("smc/drivercar/getCarModel")
    Observable<CommonResponse<VehicleInfo>> vehicleInfo(@QueryMap Map<String, String> map);

    //获取城市信息
    @GET("smc/areachina/getAreaChina")
    Observable<CommonResponse> getCityInfo(@QueryMap Map<String, String> map);

    //车辆启用/停运
    @POST("smc/drivercar/updatestatus")
    Observable<CommonResponse> vehicleStatus(@QueryMap Map<String, String> map);
}


